package com.cheng.cms.service.impl;

import com.cheng.cms.domain.Repair;
import com.cheng.cms.mapper.RepairDao;
import com.cheng.cms.service.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RepaireServiceImpl implements RepairService {

    @Autowired
    private RepairDao repairDao;

    @Override
    public List<Repair> selectAllRepair() {
        return repairDao.selectAllRepair();
    }

    @Override
    public List<Repair> selectAllRepairByCondition(Map<String, String> map) {
        return repairDao.selectAllRepairByCondition(map);
    }
}
